package com.kfgj.hkp.manager.post.api;

import com.kfgj.hkp.common.utils.HttpRequestUtils;
import com.kfgj.hkp.entity.post.EmpPostEntity;

import java.util.List;

/**
 * @author liwensihan
 * @version 1.0
 * @description TODO
 * @date 2018/11/16 16:08
 */
public class EmpPostApiClient {
    public static List<EmpPostEntity> findEmpPostAll(){
        EmpPostApiRequest request = new EmpPostApiRequest();
        request.setKey("@Housekeeper$");
        EmpPostApiResponse response = HttpRequestUtils.requestPost(request,"http://mo.kufangwuyou.com/kfwy-office/rs/empPostApi/queryAll",
                EmpPostApiResponse.class,"application/json;charset=UTF-8");
        if (response.getIsSuccess()){
            return response.getResult().getData();
        }
        return null;
    }
}
